package com.feshfans.xmpp.client;


import org.jivesoftware.smack.tcp.XMPPTCPConnection;
import org.jxmpp.jid.BareJid;

/**
 * XMPP Client 的抽象类，所有子类必须是单例的
 */
public abstract class AbstractClient {

    protected XMPPTCPConnection connection;
    AbstractClient(XMPPTCPConnection connection){
        this.connection = connection;
    }

    public BareJid getCurrentUser(){
        return this.connection.getUser().asBareJid();
    }

}

